<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <link href="<%=path %>/images/style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
         function down1(fujianPath,fujianYuashiMing)
           {
            <c:if test="${sessionScope.userType==null}">
                  alert("请先登录");
               </c:if>
            
            <c:if test="${sessionScope.userType!=null}">
	               var url="<%=path %>/updown/updown.jsp?fujianPath="+fujianPath+"&fujianYuashiMing="+fujianYuashiMing;
			       url=encodeURI(url); 
	               url=encodeURI(url); 
	               window.open(url,"_self");
	            </c:if>
           }
    </script>
    <c:if test="${sessionScope.userType!=null && sessionScope.userType==2}">
      <!--用户登录后才显示-->
      
      <script language="javascript">  
           
        
        //本次累计时间
        <!--
    var maxtime1;
    //if (window.name == '') {
        maxtime1 = 0;
    //} else {
        //maxtime1 = window.name;
    //}
    function CountDown1() {
        //if (maxtime1 >= 0) {
            minutes1 = Math.floor(maxtime1 / 60);
            seconds1 = Math.floor(maxtime1 % 60);
            msg1 = "当前学习时间:" + minutes1 + "分" + seconds1 + "秒";
            document.all["timerall"].innerHTML = msg1;
            //document.all["timerall11"].innerHTML = (minutes1*60+seconds1)/3600;    <!--换算为小时后台用-->
            document.getElementById("timerall1").value=(minutes1*60+seconds1)/3600;
           ++maxtime1;
            window.name = maxtime1;
       // }
        
    }
    timerend = setInterval("CountDown1()", 1000); 


//--> 



   
		</script>
      <script language="javascript">
        // 自动保存时间

        //alert(maxtime111);

       //maxtime 自动保存时间 单位秒
        function countDown2(maxtime111, fn) {
            var timer = setInterval(function() {
                if (maxtime111 >= 0) {
                    minutes = Math.floor(maxtime111 / 60);
                    seconds = Math.floor(maxtime111 % 60);
                    msg = "距离自动保存还有" + minutes + "分" + seconds + "秒";
                    fn(msg);
                    --maxtime111;
                }
                else {


                    clearInterval(timer);
                    document.getElementById('Ibtn_save').click();

                    countDown2(6, function(msg) {
                    document.getElementById('timerend').innerHTML = msg;
                    });

                }
            }, 1000);
        }




         var maxtime111 =120 //自动保存时间

        //countDown2(300, function(msg)
        countDown2(maxtime111,function( msg ) 
        {
            document.getElementById('timerend').innerHTML = msg;
        }); 

      

   
    </script>
    </c:if>
    </head>
    <body>

<!--main start -->

<div id="main">
      <jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
      
      <!--left panel start -->
      <div id="left">
    <jsp:include flush="true" page="/qiantai/inc/incLeft.jsp"></jsp:include>
  </div>
      <!--left panel end --> 
      <!--right panel start -->
      <div id="right"> 
    <!--rightBotMain start -->
    
    <div class="contactMain"> 
          
          <!--best start --> 
          <!--rightBot start --> 
          <!--rightBot end --> 
          <!--best start -->
          <div id="best1">
        <h2><span>知识点详细内容 </span></h2>
        <c:if test="${sessionScope.userType!=null && sessionScope.userType==2}"> 
              <!--用户登录后才显示-->
              <form action="<%=path %>/zhangjie?type=zhangjie_stuSave" name="fr" method="post">
            <input type="hidden" name="id" value="${requestScope.doc.id}">
            <input type="hidden" name="zhangjie_id" value="${requestScope.doc.zhangjie_id}">
            <div id="timerend" style="color:red">&nbsp;</div>
            <!--自动保存时间-->
            
            <div id="timerall" style="color:red">&nbsp;</div>
        
 <!--             <div id="timerall11" style="color:red">&nbsp;</div>
-->            <!--本次累计时间-->
            <input type="hidden" name="timerall1" ID="timerall1"  />
            <input type="submit" id="Ibtn_save" name="Ibtn_save" value="保存学习时间">
          </form>
            </c:if>
        <p class="bestTxt" align="center">
              <c:out value="${requestScope.doc.title}" escapeXml="false">
              </c:out>
            </p>
        <p class="bestTxt" align="center">
              <c:out value="${requestScope.doc.zhangjie_name}" escapeXml="false">
              </c:out>
              <c:out value="${requestScope.doc.shijian}" escapeXml="false">
              </c:out>
            </p>
        <strong>
            <c:out value="${requestScope.doc.content}" escapeXml="false">
            </c:out>
            <br>
            <a href="#" onclick="down1('${doc.fujian}','${doc.fujianYuanshiming}')" style="font-size: 13px;color: red">附件下载</a> 
            
            
              <br>
 教学视频   <br>
  <object id="player" height="400" width="450" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
														<param NAME="AutoStart" VALUE="-1">
														<!--是否自动播放-->
														<param NAME="Balance" VALUE="0">
														<!--调整左右声道平衡,同上面旧播放器代码-->
														<param name="enabled" value="-1">
														<!--播放器是否可人为控制-->
														<param NAME="EnableContextMenu" VALUE="-1">
														<!--是否启用上下文菜单-->
														<param NAME="url" VALUE="<%=path %>/${doc.shipin}">
														<!--播放的文件地址-->
														<param NAME="PlayCount" VALUE="1">
														<!--播放次数控制,为整数-->
														<param name="rate" value="1">
														<!--播放速率控制,1为正常,允许小数,1.0-2.0-->
														<param name="currentPosition" value="0">
														<!--控件设置:当前位置-->
														<param name="currentMarker" value="0">
														<!--控件设置:当前标记-->
														<param name="defaultFrame" value="">
														<!--显示默认框架-->
														<param name="invokeURLs" value="0">
														<!--脚本命令设置:是否调用URL-->
														<param name="baseURL" value="">
														<!--脚本命令设置:被调用的URL-->
														<param name="stretchToFit" value="0">
														<!--是否按比例伸展-->
														<param name="volume" value="50">
														<!--默认声音大小0%-100%,50则为50%-->
														<param name="mute" value="0">
														<!--是否静音-->
														<param name="uiMode" value="mini">
														<!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
														<param name="windowlessVideo" value="0">
														<!--如果是0可以允许全屏,否则只能在窗口中查看-->
														<param name="fullScreen" value="0">
														<!--开始播放是否自动全屏-->
														<param name="enableErrorDialogs" value="-1">
														<!--是否启用错误提示报告-->
														<param name="SAMIStyle" value>
														<!--SAMI样式-->
														<param name="SAMILang" value>
														<!--SAMI语言-->
														<param name="SAMIFilename" value>
														<!--字幕ID-->
													</object>
    
              
            
            
            
            </strong> <br class="spacer" />
      </div>
          <!--best end --> 
        </div>
    <!--rightBotMain end --> 
    <!--last panel start --> 
    <!--last panel end --> 
    <br class="spacer" />
  </div>
      
      <!--right panel end --> 
      <br class="spacer" />
    </div>
<!--main end --> 
<!--footerMain start -->

<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>

<!--footerMain end -->
</body>
</html>
